package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 机构管理
 */
@Data
public class SysDept {

   @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;
    private Integer parentId;
    private Integer orderNum;
    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    private String lastUpdateBy;
    private Date lastUpdateTime;
    private Byte delFlag;

//    //父级公司
//    private String parent;
//    //子级公司
//    private List<SysDept> children;


}